package com.qcit.user.ui

import android.os.Bundle
import android.view.View
import android.widget.RadioGroup
import com.qcit.annotation.ARouter
import com.qcit.annotation.click.OnClick
import com.qcit.api.ARouterManager
import com.qcit.api.click.BindClickUtil
import com.qcit.common.activity.BaseActivity
import com.qcit.common.utils.QSharedPreferences
import com.qcit.older.usercenter.common.*
import com.qcit.user.R
import com.qcit.user.bean.common.QRequester
import com.qcit.user.bean.common.value
import com.qcit.user.bean.common.valueEmpty
import kotlinx.android.synthetic.main.activity_login.*

@ARouter("/user/LoginActivity")
class LoginActivity : BaseActivity(),RadioGroup.OnCheckedChangeListener{
    var identity = 0 // 0 老人 1 子女
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        BindClickUtil.BindClickEvent(this)
    }

    override fun layout(): Int {
        return R.layout.activity_login
    }



    override fun onCheckedChanged(group: RadioGroup?, checkedId: Int) {
        identity = when (rd_group.checkedRadioButtonId){
            rb1.id -> 0
            else -> 1
        }
    }
}